package com.songlanyun.modules.skus.dao;

import com.songlanyun.modules.group.entity.ProductGoodsGroupEntity;
import com.songlanyun.modules.skus.entity.ProductSkusEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商家的商品规格表，创建了之后，对于已有的规格，在发布商品时只需要选择
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-03 15:46:49
 */
@Mapper
public interface ProductSkusDao extends BaseMapper<ProductSkusEntity> {
    ProductSkusEntity getByShopIdAndId(@Param("shop_id") Long shopId, @Param("id") Long id);
    ProductSkusEntity getByName(@Param("shop_id") Long shopId,@Param("parent_sku_id") Long parentSkuId,@Param("name") String name);
}
